package net.example.model;

import net.example.ggtalk.R;

public class UserBasicModel {
    private String UserID;
    private String UserName;
    private String DisplayName;
    private int HeadImageUrl;
    private boolean Checked=false;
    private boolean isGroup;


    public UserBasicModel(String userID,String userName,String displayName)
    {
        this.UserID=userID;
        this.UserName=userName;
        this.DisplayName=displayName;
    }

    public UserBasicModel(String userID,String userName,boolean isGroup)
    {
        this.UserID=userID;
        this.UserName=userName;
        this.DisplayName=userName;
        this.isGroup=isGroup;
        if(isGroup)
        {
            this.HeadImageUrl= R.drawable.group_ico;
        }
    }

    public UserBasicModel(String userID,String userName,int headImageUrl)
    {
        this.UserID=userID;
        this.UserName=userName;
        this.DisplayName=userName;
        this.HeadImageUrl=headImageUrl;
    }

    public String getUserID(){
        return this.UserID;
    }
    public String getUserName()
    {
        return this.UserName;
    }
    public String getDisplayName() {return this.DisplayName;}
    public int getHeadImageUrl()
    {
        return this.HeadImageUrl;
    }
    public boolean getChecked()
    {
        return this.Checked;
    }
    public boolean getIsGroup(){return this.isGroup;}


    public boolean changeChecked()
    {
        this.Checked=!this.Checked;
        return this.Checked;
    }

    public void setChecked(boolean checked)
    {
        this.Checked=checked;
    }
}
